package cn.tedu.store.mapper;

import java.util.List;

import cn.tedu.store.bean.Area;
import cn.tedu.store.bean.City;
import cn.tedu.store.bean.Province;

public interface DistrictMapper {
	List<Province> getProvinces();
	
	List<City> getCities(String parent);
	
	List<Area> getAreaes(String parent);
	/**
	 * 根据节点获取省名
	 * @param code
	 * @return
	 */
	String getProvinceNameByCode(String code);
	/**
	 * 根据节点获取市名
	 * @param code
	 * @return
	 */
	String getCityNameByCode(String code);
	/**
	 * 根据节点获取区名
	 * @param code
	 * @return
	 */
	String getAreaNameByCode(String code);
}
